import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
<<<<<<< HEAD

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    }
=======
import Home from '@/components/Home'
import logoin from '@/components/logoin'
import Test from '@/components/test.vue'
import welcom from '@/components/welcom.vue'
import User from '@/components/User.vue'
import Rights from '@/components/power/Rights.vue'
import Right from '@/components/Right.vue'
import cart from '@/components/cart.vue'
import shop from '@/components/shop.vue'
Vue.use(Router)
export default new Router({
  routes: [
    {
      path: '/HelloWorld',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/home',
      name: 'home',
      component: Home,
      redirect:'/welcom',
      children:[{
        path:'/welcom',
        component:welcom,
      },
      {
        path:'/user',
        component:User,
      },
      {
        path:'/rotter1',
        component:Rights,
      },
      {
        path: '/cart',
        name: 'Cart',
        component:cart
      },
      {
        path: '/shop',
        name: 'shop',
        component:shop
      }
        
      ]
    },
    {
      path: '/',
      name: 'logoin',
      component:logoin
    },
    {
      path: '/test',
      name: 'Test',
      component:Test
    },
    {
      path: '/Right',
      name: 'Right',
      component:Right
    }
    
>>>>>>> a5a1ff1... ‘add.files’
  ]
})
